package meconsea.webcoll.sys.dao;

import java.util.List;

import meconsea.webcoll.base.dao.BaseDAO;
import meconsea.webcoll.base.dao.IDAO;
import meconsea.webcoll.sys.entity.SysMail;

import com.google.inject.name.Named;
import com.wideplay.warp.persist.dao.Finder;
import com.wideplay.warp.persist.dao.FirstResult;
import com.wideplay.warp.persist.dao.MaxResults;

public class SysMailDao extends BaseDAO<SysMail, String> implements IDAO<SysMail, String> {
	public SysMailDao(){
		super(SysMail.class);
	}
	
	@Finder(query=SysMail.FIND_SENDER)
	public List<SysMail> findSender(@Named("senderId") String senderId,@FirstResult int first,@MaxResults int max){
		return null;
	}
	
	@Finder(query=SysMail.FIND_RECEIVER)
	public List<SysMail> findReceiver(@Named("receiverId") String receiverId,@FirstResult int first,@MaxResults int max){
		return null;
	}
	@Finder(query=SysMail.FIND_NO_READ)
	public Integer findNoRead(@Named("receiverId") String receiverId,@Named("isRead") int isRead){
		return null;
	}
}
